package com.escool.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.escool.dao.CatEventoDAO;
import com.escool.dao.CatMateriaTempDAO;

import com.escool.model.TbCatMateriaTemp;
import com.escool.model.TbCatMateriaTempDet;

@Service
public class CatMateriaTempServiceImpl implements CatMateriaTempService{
@Autowired
CatMateriaTempDAO catTipoCobroDAO;

@Transactional
public void addTbCatMateriaTemp(TbCatMateriaTemp TbCatMateriaTemp) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.addTbCatMateriaTemp(TbCatMateriaTemp);
}

@Transactional
public void editTbCatMateriaTemp(TbCatMateriaTemp TbCatMateriaTemp) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.editTbCatMateriaTemp(TbCatMateriaTemp);
}

@Transactional
public void delTbCatMateriaTemp(int id) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.delTbCatMateriaTemp(id);
}

@Transactional
public List<TbCatMateriaTemp> listTbCatMateriaTemp() {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.listTbCatMateriaTemp();
}

@Transactional
public TbCatMateriaTemp findTbCatMateriaTemp(int id) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.findTbCatMateriaTemp(id);
}

@Transactional
public void addTbCatMateriaTempDet(TbCatMateriaTempDet TbCatMateriaTempDet) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.addTbCatMateriaTempDet(TbCatMateriaTempDet);
}

@Transactional
public void editTbCatMateriaTempDet(TbCatMateriaTempDet TbCatMateriaTempDet) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.editTbCatMateriaTempDet(TbCatMateriaTempDet);
}

@Transactional
public void delTbCatMateriaTempDet(int id) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.delTbCatMateriaTempDet(id);
}

@Transactional
public List<TbCatMateriaTempDet> listTbCatMateriaTempDet(int idMaestro) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.listTbCatMateriaTempDet(idMaestro);
}

@Transactional
public TbCatMateriaTempDet findTbCatMateriaTempDet(int id) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.findTbCatMateriaTempDet(id);
}

}
